package com.ssy.lingxi.system.service;

import com.ssy.lingxi.common.response.PageData;
import com.ssy.lingxi.common.response.PageModel;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.system.dto.request.CommonParametersAddRequest;
import com.ssy.lingxi.system.dto.request.CommonParametersDeteleRequest;
import com.ssy.lingxi.system.dto.request.CommonParametersUpdateRequest;
import com.ssy.lingxi.system.entity.CommonParameters;

import javax.servlet.http.HttpServletRequest;

/**
* 短信公共参数配置业务层
* @author wrc
* @date 2020/6/3
*/
public interface CommonParametersService {

    /**
    * 查询短信公共参数列表
    * @author wrc
    * @date 2020/6/3
    */
    Wrapper<PageData<CommonParameters>> messageCommonList(PageModel request, Integer serviceType);


    /**
    * 添加公共参数
    * @author wrc
    * @date 2020/6/3
    */
    Wrapper messageCommonAdd(HttpServletRequest httpServletRequest, CommonParametersAddRequest request);

    /**
    * 修改参数
    * @author wrc
    * @date 2020/6/3
    */
    Wrapper messageCommonUpdate(CommonParametersUpdateRequest request);


    /**
    * 删除短信公共参数
    * @author wrc
    * @date 2020/6/3
    */
    Wrapper messageCommonDelete(CommonParametersDeteleRequest request);
}
